/**
 * Created by Freeman on 2016/8/9.
 */
import React,{PropTypes} from 'react'
import {Modal} from 'react-bootstrap'
import SNSLogin from './SNSLogin'
const ModalLogin = ({isShowModal,closeModal}) =>{
    const logins = ['github'];
    return (
        <div>
            <Modal backdrop={true} show={isShowModal} onHide={closeModal}>
                <Modal.Header>
                    <Modal.Title className="text-center">请用以下方式登录</Modal.Title>
                </Modal.Header>
                <Modal.Body>
                    <div className="portlet-body">
                        <SNSLogin logins={logins} />
                    </div>
                </Modal.Body>
            </Modal>
        </div>
    )
};
ModalLogin.propTypes = {
    isShowModal: PropTypes.bool.isRequired,
    closeModal: PropTypes.func.isRequired,
};

export default ModalLogin;